<?php // content="text/plain; charset=utf-8"
require_once ('../funciones/jpgraph/src/jpgraph.php');
require_once ('../funciones/jpgraph/src/jpgraph_line.php');

$datay1 = array(5000,7045,4332,7765);
//$datay2 = array(12,9,42,8);


// Setup the graph
$graph = new Graph(600,300);
$graph->SetScale("textlin");

$theme_class=new UniversalTheme;

$graph->SetTheme($theme_class);
$graph->img->SetAntiAliasing(false);
$graph->title->Set('Distancia Recorrida Rodrigo');
$graph->SetBox(false);

$graph->img->SetAntiAliasing();

$graph->yaxis->HideZeroLabel();
$graph->yaxis->HideLine(false);
$graph->yaxis->HideTicks(false,false);

$graph->xgrid->Show();
$graph->xgrid->SetLineStyle("solid");
$graph->xaxis->SetTickLabels(array('6/11/2012','9/11/2012','20/11/2012','1/10/2012'));
$graph->xgrid->SetColor('#E3E3E3');

// Create the first line
$p1 = new LinePlot($datay1);
$graph->Add($p1);
$p1->SetColor("#6495ED");
$p1->SetLegend('Distancia total recorrida');

// Create the second line
/*$p2 = new LinePlot($datay2);
$graph->Add($p2);
$p2->SetColor("#B22222");
$p2->SetLegend('Line 2');

*/

$graph->legend->SetFrameWeight(1);

// Output line
$graph->Stroke();



?>

